{% extends "base.html" %}{% load i18n %}
{% load markup news_tags %}{% block title %}最新新闻列表{% endblock %}

{% block breadcrumbs %} <a href="/">首页</a>&raquo; <a href="{% url news-index %}">新闻中心</a> {% endblock %}

{% block maintitle %}<span><a href="post" title="添加一条新闻">发布新闻</a></span>最新新闻列表{% endblock %}
{% block sidebar %}
		<div id="years_archives">
			<div class="box-top1"><span></span></div>
			<div class="box1">
				<h2>年份检索</h2>
			   <div id='user_intro'>
				<ul>

				<li><a href="search/?year=2010">2010年</a> <span class="s gray">4篇</span></li>
				<li><a href="search/?year=2009">2009年</a> <span class="s gray">7篇</span></li>
				</ul>
				</div>
				<div class="clear"></div>
			</div>
			<div class="box-bot"><span></span></div>
		</div>
		<div class="clear"></div>
		
		<div class="special">
			<div class="box-top1"><span></span></div>
			<div class="box1">
					<h2>新闻专题</h2>
					<div class="floatbox">
						<p>
						<ul>
							<li><a href="/special/#" target=_blank><strong>XX专题标题</strong>XX专题相关描述<img src="{{ MEDIA_URL }}images/007.gif"/></a> </li>
							<li><a href="/special/#" target=_blank><strong>XX专题标题</strong>XX专题相关描述<img src="{{ MEDIA_URL }}images/007.gif"/></a> </li>
						</ul>
						</p>
					  </div>
				<div class="clear"></div>
			</div>
			<div class="box-bot"><span></span></div>
		</div>
		<div class="clear"></div>

{% endblock %}




{% block content %}


<div class="headline">
	<h2>推荐头条</h2>
		{% for headline_news in headline_news_list %}
		<h3><a href="{{headline_news.get_absolute_url}}" target="_blank">{{ headline_news.title|slice:"0:13" }}</a></h3>
		<p>{{headline_news.summary|slice:"0:32"}}...<a href="{{headline_news.get_absolute_url}}" target="_blank">[查阅全文]</a></p>
		{% endfor %}
</div>

<div id="recommended">
	<h2>最新新闻</h2>
	<ul>
		{% for news in news_list %}
		<li>{{ news.pub_date|date:"m-d" }}({{ news.category }}) <a href="{{news.get_absolute_url}}" title="{{ news.title }}" target="_blank">{{ news.title|slice:"0:15" }}</a>  {%if news.total_attachments%}<img src="{{MEDIA_URL}}images/img.gif" alt="有附件"/>{%endif%}	</li>
		{% endfor %}
	</ul>
</div>

{% endblock %}


{% block extended_content %}
<div id="extended" class="mainwrapper"><!--begin:extended-->
	<div class="box-top"><h1> 新闻排行 </h1></div>
	<div id="top10" class="box">

		<div class='third-mw'>
			<div class="box-top1"><h1><a href="{{ category.get_absolute_url }}">{{ category.name|escape }}</a></h1></div>
			<div id="q1" class="box1">
				<h2>点击排行</h2>
				<ul>
				{% for news in most_viewed_list %}
				<li><a href="{{news.get_absolute_url}}" title="{{ news.title }}">{{ news.title|slice:"0:11" }}...(阅{{ news.views }})</a></li>{% endfor %}
				</ul>
				<div class="clear"></div>
			</div>
			<div class="box-bot"><span></span></div>
		</div>
		
		
		<div class='third-mw'>	
			<div class="box-top1"><h1><a href="{{ category.get_absolute_url }}">{{ category.name|escape }}</a></h1></div>
			<div id="q1" class="box1">
				<h2>热点关注</h2>
				 <ul>
					<li><a href="#" title="">新闻评论TOP5(评123)</a></li>
					<li><a href="#" title="">新闻评论TOP5(评123)</a></li>
					<li><a href="#" title="">新闻评论TOP5(评123)</a></li>
					<li><a href="#" title="">新闻评论TOP5(评123)</a></li>
					<li><a href="#" title="">新闻评论TOP5(评123)</a></li>
				</ul>
				
				<div class="clear"></div>
			</div>
			<div class="box-bot"><span></span></div>
		</div>



		<div class='third-mw'>
			<div class="box-top1"><h1><a href="{{ category.get_absolute_url }}">{{ category.name|escape }}</a></h1></div>
			<div id="q1" class="box1">
				<h2>新闻统计</h2>
				<ul>
				<li>新闻总数：{{news_count}}个新闻</li>
				<li>今日更新：0个新闻</li>
				<li>浏览总数：642人次</li>
				<li>[  浏览新闻分类列表 ]</li>
				<li>[  新闻链接地址报错 ]</li>
				<li>[  我要发布新闻资讯 ]</li>
				</ul>
				<div class="clear"></div>
			</div>
			<div class="box-bot"><span></span></div>
		</div>		
		
		
		<div class="clear"></div>
	</div>
	<div class="box-bot"><span></span></div>
</div><!--end:extended-->

<div id="picnews_list" class="mainwrapper"><!--begin:extended-->
	<div class="box-top"><h1> 图片新闻 </h1></div>
	<div id="picnews_list1" class="box"><div class="clear"></div>
		<ul>{% for item in picnews_items %}
		<li><a href="{{ item.get_absolute_url }}">{{ item.title|escape }}</a>{%if item.total_attachments%}<img src="{{MEDIA_URL}}images/img.gif" alt="有附件"/>{%endif%} {{ item.pub_date|date:"y-m-d" }}</li>
		{% endfor %}</ul>
		<div class="clear"></div>
	</div>
	<div class="box-bot"><span></span></div>
</div><!--end:extended-->

<div id="category_list" class="mainwrapper"><!--begin:extended-->
	<div class="box-top"><h1> 分类新闻 </h1></div>
	<div id="category_latest" class="box"><div class="clear"></div>
		{% for category in categories %}
		<div class='semi-mw'>
			<div class="box-top1"><span></span></div>
			<div id="q1" class="box1">
				<h2><a href="{{ category.get_absolute_url }}">{{ category.name|escape }}</a></h2>
				{% get_posts_by_category category.slug 5 as news_items %}
				<ul>{% for item in news_items %}
				<li><a href="{{ item.get_absolute_url }}">{{ item.title|escape }}</a>{%if item.total_attachments%}<img src="{{MEDIA_URL}}images/img.gif" alt="有附件"/>{%endif%} {{ item.pub_date|date:"y-m-d" }}</li>
				{% endfor %}</ul>
				<div class="clear"></div>
			</div>
			<div class="box-bot"><span></span></div>
		</div>
		{% endfor %}
		<div class="clear"></div>
	</div>
	<div class="box-bot"><span></span></div>
</div><!--end:extended-->










{% endblock extended_content%}